<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="module" src="math18.js"></script>
   
</head>
<body>
  <button id="butt">导入</button>
<script type="module">
  import { add,minus } from './math18.js';
  
  // 调用模块函数
  console.log(add(3, 5));
  console.log(minus(3, 5));  // 输出：8
  let butt=document.getElementById("butt")
  butt.addEventListener("click",()=>{
   let a= import('./math18.js')
   a.then(()=>{
    console.log(module.minus)
   })
  })
</script>
</body>
</html>